﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace TLOW_MapEditor
{
    class CTile
    {
        // private members //

        /// <summary>
        /// This member is only used for the undo / redo feature
        /// </summary>
        private Point location;
        public Point Location
        {
            get { return location; }
            set { location = value; }
        }

        private int tileImageID;
        public int TileImageID
        {
            get { return tileImageID; }
            set { tileImageID = value; }
        }

        private bool isCollidable;
        public bool IsCollidable
        {
            get { return isCollidable; }
            set { isCollidable = value; }
        }

        /// <summary>
        /// This member is only used for the undo / redo feature
        /// </summary>
        private bool wasAdded;
        public bool WasAdded
        {
            get { return wasAdded; }
            set { wasAdded = value; }
        }




        // constructor //
        public CTile()
        {
            tileImageID = -1;
            isCollidable = false;
        }

        public CTile(int TILESETID, bool ISCOLLIDABLE, bool WASADDED)
        {
            tileImageID = TILESETID;
            isCollidable = ISCOLLIDABLE;
            wasAdded = WASADDED;
        }

        public CTile(CTile TILEPARAM)
        {
            tileImageID = TILEPARAM.tileImageID;
            isCollidable = TILEPARAM.isCollidable;
            wasAdded = TILEPARAM.wasAdded;
        }
    }
}
